package com.xiao.seckil.web;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
@RequestMapping("seckil/seckill")
public class WebController {
    @RequestMapping("/tomiaosha")
    public String tomiaosha(Model model, @RequestParam("userId")Integer userId){
        model.addAttribute("userId",userId);
        return "miaosha";
    }
}
